<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文章展示</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">

</head>
<body>
<form action="">
    <input type="text" name="keyword" ><input type="submit" class="btn-danger" >
</form>
<form action="">
    <button>用户退出登录</button>
</form>
<table class="table">
    <tr>
        <th>ID</th>
        <th>文章标题</th>
        <th>文章描述</th>
        <th>文章封面</th>
        <th>文章内容</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>
    {foreach $data as $k=>$v}
    <tr>
        <td>{$v.id}</td>
        <td>{$v.title}</td>
        <td>{$v.desc}</td>
        <td><img src="{$v.img}" style="width: 80px"></td>
        <td>{$v.content|raw}</td>
        <td>{$v.create_time}</td>
        <td>
            <a href="edit?id={$v.id}">编辑</a>
            <a href="delete?id={$v.id}">删除</a>
            <a href="soft?id={$v.id}">软删除</a>
        </td>
    </tr>
    {/foreach}
</table>
{$data|raw}
</body>
<script src="/static/js/jquery-3.1.1.min.js"></script>
<script>

</script>

</html>